package edu.scu.declaresys.web;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public abstract class ABaseAction extends ActionSupport implements SessionAware,
ServletRequestAware, ServletResponseAware
{
	private static final long	serialVersionUID	= 327566660905875872L;
	
	protected Map<String, Object> session;
	
	protected HttpServletRequest request;
	
	protected HttpServletResponse response;
	
	//
	//
	//
	@Override
	public void setServletResponse(HttpServletResponse arg0)
	{
		response = arg0;
	}
	
	@Override
	public void setServletRequest(HttpServletRequest request)
	{
		this.request = request;
	}

	@Override
	public void setSession(Map<String, Object> arg0)
	{
		session = arg0;
	}
}
